/**
 * Lego4jMatchers.java
 * 
 * Created on Jul 5, 2008 at 10:21:30 AM
 */
package org.lego4j.matchers;

import org.hamcrest.Matcher;

/**
 * TODO add javadoc to Lego4jMatchers
 *
 * @author <a href="alexguev@gmail.com">Alexei Guevara</>
 * @version $Revision:$ updated on $Date:$ by $Author:$
 */
public class Lego4jMatchers {
   
    public static <T> Matcher<T> instanceOf( Class<T> theInstanceType) {
        return InstanceOfMatcher.instanceOf(theInstanceType);
    }
    
    public static <T extends Exception> ExceptionMessageSyntax throwsException( Matcher<T> theExMatcher) {
        return new ExceptionMatcherBuilder().throwsException( theExMatcher);
    }
    
    public static <T extends Exception> ExceptionMessageSyntax throwsException() {
        return new ExceptionMatcherBuilder().throwsException();
    }
    
}
